package cc.mrbird.assets.service;

import cc.mrbird.assets.domain.AssetMana;
import cc.mrbird.assets.domain.AssetType;
import cc.mrbird.assets.domain.Manufacturers;
import cc.mrbird.common.domain.QueryRequest;
import cc.mrbird.system.domain.User;
import cc.mrbird.unit.domain.AuxiliaryInfor;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@CacheConfig(cacheNames = "AssetManaService")
public interface AssetManaService {

    List<AssetMana> findAllList(AssetMana assetMana, QueryRequest request);

    @CacheEvict(allEntries = true)
    void add(AssetMana assetMana,User user);
    @CacheEvict(key = "#p0", allEntries = true)
    void delete(String ids);
    @Cacheable(key = "#p0")
    public AssetMana findById(Long id);

    @CacheEvict(key = "#p0", allEntries = true)
    void update(AssetMana assetMana);


    boolean batchImport(String fileName, MultipartFile file) throws Exception;


}
